package com.ruoyi.qt.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收藏对象 qt_collect
 * 
 * @author ruoyi
 * @date 2021-12-06
 */
public class QtCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String collectId;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 题库id */
    @Excel(name = "题库id")
    private String tkId;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectTime;

    /** 备用字符串 */
    @Excel(name = "备用字符串")
    private String collectStr;

    /** 备用整数 */
    @Excel(name = "备用整数")
    private Long collectInt;

    public void setCollectId(String collectId) 
    {
        this.collectId = collectId;
    }

    public String getCollectId() 
    {
        return collectId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setTkId(String tkId) 
    {
        this.tkId = tkId;
    }

    public String getTkId() 
    {
        return tkId;
    }
    public void setCollectTime(Date collectTime) 
    {
        this.collectTime = collectTime;
    }

    public Date getCollectTime() 
    {
        return collectTime;
    }
    public void setCollectStr(String collectStr) 
    {
        this.collectStr = collectStr;
    }

    public String getCollectStr() 
    {
        return collectStr;
    }
    public void setCollectInt(Long collectInt) 
    {
        this.collectInt = collectInt;
    }

    public Long getCollectInt() 
    {
        return collectInt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("collectId", getCollectId())
            .append("userId", getUserId())
            .append("tkId", getTkId())
            .append("collectTime", getCollectTime())
            .append("collectStr", getCollectStr())
            .append("collectInt", getCollectInt())
            .toString();
    }
}
